package com.awifi.com.thread.callable;

import java.util.Map;
import java.util.concurrent.*;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/6/29 14:39
 */
public class TestCallableThread {
    public static void main(String[] args) {
        CallableThread callableThread = new CallableThread();
        ExecutorService executorService = Executors.newCachedThreadPool();
        Future<Object> future = executorService.submit(callableThread);

        try{
            System.out.println(future.get());
        }catch (InterruptedException e){
            e.printStackTrace();
        }catch (ExecutionException e) {
            e.printStackTrace();
        }

    }
}
